package com.yoga.entity;

import java.io.Serializable;

/**
 * yoga_coach
 * @author 
 */
public class YogaCoach implements Serializable {
    private Integer uid;

    private Integer classmoney;

    private Integer vid;

    private Integer positive;

    private Integer msum;

    private static final long serialVersionUID = 1L;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getClassmoney() {
        return classmoney;
    }

    public void setClassmoney(Integer classmoney) {
        this.classmoney = classmoney;
    }

    public Integer getVid() {
        return vid;
    }

    public void setVid(Integer vid) {
        this.vid = vid;
    }

    public Integer getPositive() {
        return positive;
    }

    public void setPositive(Integer positive) {
        this.positive = positive;
    }

    public Integer getMsum() {
        return msum;
    }

    public void setMsum(Integer msum) {
        this.msum = msum;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        YogaCoach other = (YogaCoach) that;
        return (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getClassmoney() == null ? other.getClassmoney() == null : this.getClassmoney().equals(other.getClassmoney()))
            && (this.getVid() == null ? other.getVid() == null : this.getVid().equals(other.getVid()))
            && (this.getPositive() == null ? other.getPositive() == null : this.getPositive().equals(other.getPositive()))
            && (this.getMsum() == null ? other.getMsum() == null : this.getMsum().equals(other.getMsum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getClassmoney() == null) ? 0 : getClassmoney().hashCode());
        result = prime * result + ((getVid() == null) ? 0 : getVid().hashCode());
        result = prime * result + ((getPositive() == null) ? 0 : getPositive().hashCode());
        result = prime * result + ((getMsum() == null) ? 0 : getMsum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uid=").append(uid);
        sb.append(", classmoney=").append(classmoney);
        sb.append(", vid=").append(vid);
        sb.append(", positive=").append(positive);
        sb.append(", msum=").append(msum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}